package com.mdd.front.service.yangyangLeadingEnterprise;

import com.mdd.common.core.PageResult;
import com.mdd.common.entity.yangyangLeadingEnterprise.TAppBanner;
import com.mdd.front.validate.common.PageValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppBannerCreateValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppBannerSearchValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppBannerUpdateValidate;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppBannerDetailVo;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppBannerListedVo;

import java.util.List;

/**
 * 轮播图服务接口类
 * @author LikeAdmin
 */
public interface ITAppBannerService {

    /**
     * 轮播图列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<TAppBannerListedVo>
     */
    PageResult<TAppBannerListedVo> list(PageValidate pageValidate, TAppBannerSearchValidate searchValidate);

    /**
     * 轮播图详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return TAppBannerDetailVo
     */
    TAppBannerDetailVo detail(Integer id);

    /**
     * 轮播图新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(TAppBannerCreateValidate createValidate);

    /**
     * 轮播图编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(TAppBannerUpdateValidate updateValidate);

    /**
     * 轮播图删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

    List<TAppBanner> selectList(Integer type,Integer showType);
}
